import request from '@/sheep/request';

export default {
  // 获取聊天token
  release: (data) =>
    request({
      url: '/api/redenvelope/release',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  groupmsg: (data) =>
    request({
      url: '/api/chat/groupmsg',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
        auth: true,
      },
    }),

  friendsmsgdel: (data) =>
    request({
      url: '/api/chat/friendsmsgdel',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
        auth: true,
      },
    }),
  newmessage: (data) =>
    request({
      url: '/api/chat/newmessage',
      method: 'POST',
      params: data,
      custom: {
        showLoading: false,
        auth: true,
      },
    }),
  groupmsgdel: (data) =>
    request({
      url: '/api/chat/groupmsgdel',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
        auth: true,
      },
    }),
  redenvelopeshow: (params) =>
    request({
      url: '/api/chat/redenvelopeshow',
      method: 'GET',
      params,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  msguserlist: (params) =>
    request({
      url: '/api/chat/msguserlist',
      method: 'GET',
      params,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  chatnfo: (params) =>
    request({
      url: '/api/chat/chatnfo',
      method: 'GET',
      params,
      custom: {
        showLoading: false,
        auth: true,
      },
    }),
  emotelist: (params) =>
    request({
      url: '/api/chat/emotelist',
      method: 'GET',
      params,
      custom: {
        showLoading: false,
        auth: true,
      },
    }),
  emoteadd: (data) =>
    request({
      url: '/api/chat/emoteadd',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  moneyzz: (data) =>
    request({
      url: '/api/chat/moneyzz',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  moneysz: (data) =>
    request({
      url: '/api/chat/moneysz',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  emotedel: (data) =>
    request({
      url: '/api/chat/emotedel',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  friendsmsgch: (data) =>
    request({
      url: '/api/chat/friendsmsgch',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  groupmsgch: (data) =>
    request({
      url: '/api/chat/groupmsgch',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  collectlist: (params) =>
    request({
      url: '/api/chat/collectlist',
      method: 'GET',
      params,
      custom: {
        showLoading: false,
        auth: true,
      },
    }),
  collect: (params) =>
    request({
      url: '/api/chat/collect',
      method: 'POST',
      params,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  collectdel: (data) =>
    request({
      url: '/api/chat/collectdel',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
        auth: true,
      },
    }),
  receive: (data) =>
    request({
      url: '/api/redenvelope/receive',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  noticenum: (params) =>
    request({
      url: '/api/chat/noticenum',
      method: 'GET',
      params,
      custom: {
        showLoading: false,
        auth: true,
      },
    }),
  searchuser: (params) =>
    request({
      url: '/api/chat/searchuser',
      method: 'GET',
      params,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  friendsapply: (params) =>
    request({
      url: '/api/chat/friendsapply',
      method: 'GET',
      params,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  friends: (params) =>
    request({
      url: '/api/chat/friends',
      method: 'GET',
      params,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  friendslist: (params) =>
    request({
      url: '/api/chat/friends',
      method: 'GET',
      params,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  friendslog: (params) =>
    request({
      url: '/api/chat/friendslog',
      method: 'GET',
      params,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  groupshow: (params) =>
    request({
      url: '/api/chat/groupshow',
      method: 'GET',
      params,
      custom: {
        showLoading: false,
        auth: true,
      },
    }),
  grouplist: (params) =>
    request({
      url: '/api/chat/grouplist',
      method: 'GET',
      params,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  chatgroupsharcode: (data) =>
    request({
      url: '/api/chat/groupsharcode',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  grouplog: (params) =>
    request({
      url: '/api/chat/grouplog',
      method: 'GET',
      params,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  groupuserlist: (params) =>
    request({
      url: '/api/chat/groupuserlist',
      method: 'GET',
      params,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  usershow: (params) =>
    request({
      url: '/api/chat/usershow',
      method: 'GET',
      params,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  groupfriends: (params) =>
    request({
      url: '/api/chat/groupfriends',
      method: 'GET',
      params,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  groupshowpower: (params) =>
    request({
      url: '/api/chat/groupshowpower',
      method: 'GET',
      params,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  friendssh: (data) =>
    request({
      url: '/api/chat/friendssh',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  addgroup: (data) =>
    request({
      url: '/api/chat/addgroup',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  groupedit: (data) =>
    request({
      url: '/api/chat/groupedit',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  groupoperate: (data) =>
    request({
      url: '/api/chat/groupoperate',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  groupuseradd: (data) =>
    request({
      url: '/api/chat/groupuseradd',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  userzzjs: (data) =>
    request({
      url: '/api/user/userzzjs',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  groupuserdel: (data) =>
    request({
      url: '/api/chat/groupuserdel',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),

  redpacketadd: (data) =>
    request({
      url: '/api/chat/redpacketadd',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  redpacketreceive: (data) =>
    request({
      url: '/api/chat/redpacketreceive',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  msgrecall: (data) =>
    request({
      url: '/api/chat/msgrecall',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  logdel: (data) =>
    request({
      url: '/api/chat/logdel',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  sendmsg: (data) =>
    request({
      url: '/api/chat/sendmsg',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  newmegoperate: (data) =>
    request({
      url: '/api/chat/newmegoperate',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  msglog: (params) =>
    request({
      url: '/api/chat/msglog',
      method: 'GET',
      params,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  delgroup: (data) =>
    request({
      url: '/api/chat/delgroup',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  userzz: (data) =>
    request({
      url: '/api/user/userzz',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  addfriends: (data) =>
    request({
      url: '/api/chat/addfriends',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  friendsmsg: (data) =>
    request({
      url: '/api/chat/friendsmsg',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
        auth: true,
      },
    }),
  friendsshow: (data) =>
    request({
      url: '/api/chat/friendsshow',
      method: 'GET',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  friendsedit: (data) =>
    request({
      url: '/api/chat/friendsedit',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  groupuseredit: (data) =>
    request({
      url: '/api/chat/groupuseredit',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  searchusershow: (data) =>
    request({
      url: '/api/chat/searchusershow',
      method: 'GET',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  friendsrule: (data) =>
    request({
      url: '/api/chat/friendsrule',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
        auth: true,
      },
    }),

  userbind: (data) =>
    request({
      url: '/api/chat/userbind',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
        auth: true,
      },
    }),
};
